<?php
if (!defined ("TYPO3_MODE")) 	die ("Access denied.");


if (t3lib_div::int_from_ver(TYPO3_version) <= 4005000) {

	//Prevents from sending email in case of error
	$TYPO3_CONF_VARS['FE']['XCLASS']['t3lib/class.t3lib_formmail.php'] = PATH_typo3conf.'ext/accessible_form_validation/class.ux_t3lib_formmail.php';

	//Extends Typo3 standard mailform
	$TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]['tslib/class.tslib_content.php'] = PATH_typo3conf.'ext/accessible_form_validation/class.ux_tslib_content.php';

}
else {
	
	//Prevents from sending email in case of error
	$TYPO3_CONF_VARS['FE']['XCLASS']['t3lib/class.t3lib_formmail.php'] = PATH_typo3conf.'ext/accessible_form_validation/class.ux_t3lib_formmail.php';

	//Extends Typo3 standard mailform
	$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_form.php'] = PATH_typo3conf.'ext/accessible_form_validation/class.ux_tslib_content_form.php';
}

?>
